package com.phone.store.repository;

import com.phone.store.entity.PhoneSpecs;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/7/30 4:04 下午
 */
public interface PhoneSpecsRepository extends JpaRepository<PhoneSpecs, Integer> {
    /**
     * 通过商品id查找商品所有规格
     * @param phoneId
     * @return
     */
    public List<PhoneSpecs> findAllByPhoneId(Integer phoneId);
}
